home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / jre115s.exe / jre1.1.5 / bin / jre
Text File  |  1997-11-24  |  611b  |  33 lines

  1. #!/bin/ksh
  2.  
  3. export THREADS_TYPE=${THREADS_FLAG:-green}_threads
  4.  
  5. PROG=$(basename $0)
  6. ARCH=$(uname -p)
  7.  
  8. case $1 in
  9. -native)
  10.     THREADS_TYPE=native_threads
  11.     shift
  12.     ;;
  13. -green)
  14.     THREADS_TYPE=green_threads
  15.     shift
  16.     ;;
  17. esac
  18.  
  19. if [ -z "$JAVA_HOME" ]
  20. then
  21.     export JAVA_HOME=$(dirname $(whence -p $0))/..
  22. fi
  23.  
  24. if [ -z "$CLASSPATH" ]
  25. then
  26.     export CLASSPATH=$JAVA_HOME/lib/rt.jar:$JAVA_HOME/lib/i18n.jar
  27.     CLASSPATH=$JAVA_HOME/classes:$JAVA_HOME/lib/classes.zip:$CLASSPATH
  28. fi
  29.  
  30. export LD_LIBRARY_PATH=$JAVA_HOME/lib/$ARCH/$THREADS_TYPE:$LD_LIBRARY_PATH
  31.  
  32. exec $JAVA_HOME/bin/$ARCH/$THREADS_TYPE/$PROG $*
  33.